import http from './http';
import constant from './constant';

// 大屏内数据信息
export const getScreenInfo = params => http.post(constant.SCREEN.GET_SCREEN_INFO, params);

// 大屏高途组柱状图信息
export const getScreenGroup = params => http.post(constant.SCREEN.GET_GAOTU_GROUP, params);

// 获取大屏列表
export const getScreenList = (params, cancelToken) => http.post(
    constant.SCREEN.GET_SCREEN_LIST,
    params,
    {cancelToken}
);

// 删除大屏
export const deleteScreen = params => http.post(constant.SCREEN.DELETE_SCREEN, params);

// 创建大屏
export const createScreen = params => http.post(constant.SCREEN.CREATE_SCREEN, params);

// 获取大屏详情
export const getScreenDetail = params => http.post(constant.SCREEN.GET_SCREEN_DETAIL, params);

// 更新大屏信息
export const updateScreen = params => http.post(constant.SCREEN.UPDATE_SCREEN, params);

// cas根据keyword 获取人员列表
export const getAccountList = params => http.post(constant.SCREEN.GET_ACCOUNT_SEARCH, params);
